/*
 * @Author: szx
 * @Date: 2022-02-12 14:44:59
 * @LastEditTime: 2022-02-12 14:52:00
 * @Description:
 * @FilePath: \leetcode\1700-1799\1748\1748.js
 */
/**
 * @param {number[]} nums
 * @return {number}
 */
// var sumOfUnique = function (nums) {
//     let res = 0;
//     let map = new Map();
//     for (let n of nums) map.set(n, (map.get(n) || 0) + 1);
//     for (let m of map) if (m[1] == 1) res += m[0];
//     return res;
// };

